<nz-card [style.display]="logForBackupId? 'none': 'block'">
    <base-grid
        [name]="'备份'"
        [keyField]="'id'"
        [nameField]="'name'"
        [usePage]="true"
        [showSort]="true"
        [columns]="columns"
        [schema]="schema"
        [popupWidth]="800"
        [popupHeight]="'80%'"
        [commitWrapper]="commitWrapper.bind(this)"
        [recordWrapper]="recordWrapper.bind(this)"
        [customOperateButtons]="customOperateButtons"
    >
    </base-grid>
</nz-card>

<ng-container *ngIf="logForBackupId">
    <sys-backup-run-log [backupId]="logForBackupId" [showBack]="true" (backClick)="logForBackupId = ''"></sys-backup-run-log>
</ng-container>

